lcBlockAddMText Home

Adds a new Multiline Text object into a block.

 HANDLE lcBlockAddMText (
   HANDLE hBlock,
   LPCWSTR szText,
   double X,
   double Y,
   double WrapWidth,
   int Align,
   double RotAngle,
   double Height,
   double WScale
 );

Parameters
hBlock
  Handle to a block.
szText
  Text string. It can contain formatting codes which allow to set different fonts, characters height and colors within one text object.
X Y
  Coordinates of a multiline text insertion point.
WrapWidth
  Max width of the text bounding rectangle.
Align
  Text alignment relative to the insertion point.
RotAngle
  Rotation angle.
Height
  Text height, in drawing units.
WScale
  Text width factor (horizontal scale).

Return Value

  Handle to created Multiline Text object or NULL if the function fails.

See Also

  Code sample,   Text style